<html>
<head>
	<title>Bob's Auto Parts - Order Results</title>
</head>
<body>
<h1>Bob's Auto Parts</h1>
<h2>Order Results</h2>
<?
	define ("TIREPRICE", 100);
	define ("OILPRICE", 10);
	define ("SPARKPRICE", 4);
	echo "<p>Order processed at ";
	echo date("H:i, jS F");
	echo "<br>";
	echo $tireqty." tires<br>";
	echo $oilqty." bottles of oil<br>";
	echo $sparkqty." spark plugs<br>";
	$totalqty = $tireqty + $oilqty + $sparkqty;
	$totalamount = $tireqty * TIREPRICE + $oilqty * OILPRICE + $sparkqty * SPARKPRICE;
	$totalamount = number_format($totalamount, 2);
	echo "<br>\n";
	echo "Items ordered:           ".$totalqty."<br>\n";
	echo "Subtotal:                ".$totalamount."<br>\n";
	$taxrate = 0.10; 
	$totalamount = $totalamount * (1 - $taxrate);
	$totalamount = number_format($totalamount, 2);
	echo "Total including tax:    $".$totalamount."<br>\n";
?>
</body>
</html>